
const storage = weex.requireModule('storage')


module.exports = {

  saveItem(item,key) {
    storage.setItem(key, item, event => {
    console.log('set success')
    })
  },

  getItem(key) {
    storage.getItem(key, event => {
      var data = event.data
      return data
    })
  },

  removeItem(key) {
    storage.removeItem(key, event => {

    })
  }


}
